package org.aristotle.user.model.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import org.aristotle.user.model.vo.RoleVO;
import org.aristotle.user.model.vo.PermissionVO;

@Data
@ApiModel("角色权限联系")
public class RolePermissionVO {

    @ApiModelProperty("角色权限联系id")
    @JSONField(name = "id", serializeUsing = ToStringSerializer.class)
    private java.lang.Long id;

    @ApiModelProperty("描述")
    @JSONField(name = "info")
    private String info;

    @ApiModelProperty("创建时间")
    @JSONField(name = "createTime", format = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private java.util.Date createTime;

    @ApiModelProperty("修改时间")
    @JSONField(name = "updateTime", format = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private java.util.Date updateTime;

    @ApiModelProperty("角色Id")
    @JSONField(name = "roleId", serializeUsing = ToStringSerializer.class)
    private Long roleId;
    @ApiModelProperty("权限Id")
    @JSONField(name = "permissionId", serializeUsing = ToStringSerializer.class)
    private Long permissionId;

    @ApiModelProperty("角色")
    @JSONField(name = "role")
    private RoleVO role;
    @ApiModelProperty("权限")
    @JSONField(name = "permission")
    private PermissionVO permission;

}
